<?php

$path = dirname(dirname(__FILE__));
require($path.'/lib/crt.php');

$crt = new CRT();
$crt->init();

$minX = Clean::float($_REQUEST['minX']);
$maxX = Clean::float($_REQUEST['maxX']);
$minY = Clean::float($_REQUEST['minY']);
$maxY = Clean::float($_REQUEST['maxY']);
$extents = array('minX' => $minX, 'maxX'=>$maxX,'minY' => $minY, 'maxY' => $maxY);

require_once(PLUGIN_PATH.'/lib/block.php');

$nhs = CRTBlock::getNeighborhoods($extents);
echo json_encode($nhs);
?>
